package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;

/**
 * 电路属性参数
 * @TableName es_circuit_code_data
 */
public class EsCircuitCodeData implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 电路编号
     */
    private Long circuit_id;

    /**
     * 模板编号
     */
    private Long template_id;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 值
     */
    private String value;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 电路编号
     */
    public Long getCircuit_id() {
        return circuit_id;
    }

    /**
     * 电路编号
     */
    public void setCircuit_id(Long circuit_id) {
        this.circuit_id = circuit_id;
    }

    /**
     * 模板编号
     */
    public Long getTemplate_id() {
        return template_id;
    }

    /**
     * 模板编号
     */
    public void setTemplate_id(Long template_id) {
        this.template_id = template_id;
    }

    /**
     * 状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 值
     */
    public String getValue() {
        return value;
    }

    /**
     * 值
     */
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsCircuitCodeData other = (EsCircuitCodeData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCircuit_id() == null ? other.getCircuit_id() == null : this.getCircuit_id().equals(other.getCircuit_id()))
            && (this.getTemplate_id() == null ? other.getTemplate_id() == null : this.getTemplate_id().equals(other.getTemplate_id()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCircuit_id() == null) ? 0 : getCircuit_id().hashCode());
        result = prime * result + ((getTemplate_id() == null) ? 0 : getTemplate_id().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", circuit_id=").append(circuit_id);
        sb.append(", template_id=").append(template_id);
        sb.append(", state=").append(state);
        sb.append(", value=").append(value);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}